package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.MallIncome;
import com.sc.nft.entity.dto.MallIncomeQueryDTO;
import com.sc.nft.entity.dto.MallIncomeQueryPageDTO;
import com.sc.nft.entity.vo.MallIncomeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ip商城收益模板(MallIncome)表数据库访问层
 *
 * @author wwc
 * @since 2023-05-15 10:50:58
 */
public interface MallIncomeMapper extends BaseMapper<MallIncome> {

    Page<MallIncomeVO> queryPage(Page toMp, @Param("mallIncomeQueryPageDTO") MallIncomeQueryPageDTO mallIncomeQueryPageDTO);

    MallIncomeVO getByIdLeftJoin(@Param("id") Long id);

    List<MallIncomeVO> getQuery(@Param("mallIncomeQueryDTO") MallIncomeQueryDTO mallIncomeQueryDTO);

}
